<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        background-color: red;
        height: 100vh;
        padding: 20px;
    }

    iframe {
        width: 80vw;
        height: 80vh;
        background-color: pink;
    }
</style>

<body>
    <ul>
        <li><a target="iframeName" href="https://news.qq.com/">qq新闻</a></li>
        <li><a target="iframeName" href="./login.html">登录</a></li>
    </ul>
    <iframe name="iframeName" src="https://www.baidu.com" frameborder="0"></iframe>
</body>

</html>